package com.dp.builder.exp1.builder;

import com.dp.builder.exp1.product.Bike;

/**
 * @Author: Ruomeng
 * @Date: 2024/11/27
 * @Description : design-pattern
 * Hello单车建造者
 * @Version: 1.0
 */
public class HelloBuilder extends Builder {

    @Override
    public void buildFrame() {
        System.out.println("create Frame");
        mBike.setFrame("hello Bike车架");
    }

    @Override
    public void buildSeat() {
        System.out.println("create Seat");
        mBike.setFrame("hello Bike车座");
    }

    @Override
    public Bike createBike() {
        return mBike;
    }

}
